//
//  BaseViewController.swift
//  xmly
//
//  Created by 刘文超 on 2019/12/27.
//  Copyright © 2019 刘文超. All rights reserved.
//

import UIKit

class BaseNavViewController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()

        WRNavigationBar.defaultNavBarBarTintColor = lineGrayColor

        WRNavigationBar.defaultNavBarTintColor = MainColor
        WRNavigationBar.defaultNavBarTitleColor = UIColor.black
        WRNavigationBar.defaultShadowImageHidden = true
//        WRNavigationBar.defaultStatusBarStyle = .lightContent
        

    }
    
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        if children.count > 0 {
            viewController.hidesBottomBarWhenPushed = true
        }
        super.pushViewController(viewController, animated: animated)
    }

}
